@import '~codemirror/lib/codemirror.css';
@import './dracula.css';
// @import './oceanic-next.css';

.CodeMirror {
  height: auto !important;
  padding: 10px;
  pre {
    padding: 0 20px;
  }
}

.code-view-wrapper {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 18px 12px 18px;
  border: 1px dashed #f1f1f1;
  .code-view-toolbar {
    right: 0;
    bottom: 0;
    text-align: right;
    .btn {
      border-style: dashed;
      .icon-code {
        font-size: 20px;
      }
    }
  }
  .doc-code {
    height: 0;
    overflow: hidden;
    &.show {
      height: auto;
    }
  }
  .code-view {
    position: relative;
    padding: 10px 0;
    &:after {
      position: absolute;
      top: 18px;
      left: 18px;
      color: #959595;
      font-weight: 300;
      font-size: 12px;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
  }
  .code-view-error {
    color: red;
  }
}
